-- GENERATED SPELL FOR [Stonevault Ambusher] --


function spell0_7175(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(8721,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7175', 562, 1)
end

function spell1_7175(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_7175', 590, 1)
end

function Sorts_7175(pUnit, Event)
local choix_sorts_7175 = math.random(0, 1)
if choix_sorts_7175 == 0 then
pUnit:RegisterEvent('spell0_7175', 1, 1)
end
if choix_sorts_7175 == 1 then
pUnit:RegisterEvent('spell1_7175', 1, 1)
end
end

function mob7175_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7175', math.random(1500, 3000), 1)
end

function mob7175_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7175_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7175_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7175, 1, 'mob7175_Action')
RegisterUnitEvent(7175, 2, 'mob7175_Leave')
RegisterUnitEvent(7175, 3, 'mob7175_Kill')
RegisterUnitEvent(7175, 4, 'mob7175_Die')
